Skip to content

iltertaha/vulfocus_automater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Vulfocus Automate v1

Purpose of this repo is to provide a script that allows the containers hosted by Vulfocus to be automatically tested with the nucleus and store the results.

This work is based on vulfocus-py with modifications and additions.

Tested with python3 on Ubuntu. Script uses hardcoded sudo command.

How to use?

  • Clone this repo.

  • Make sure you have nucleus installed properly. (This repo uses nucleus command from the current working directory)

  • Create vulfocus account from vulfocus.io

  • Run command: pip install -r requirements.txt in the vulfocusAutomate folder.

    • If you have different python versions installed namely python and python3. Consider installing with command:
      • pip3 install -r requirements.txt
  • Open credentials.py and enter your credentials.

    • To find your licence:
      • login your vulfocus account and switch to account tab(second from the top in the left menu)
      • In the opened page, click the second tab, which will show your email password and licence*
  • Open readyToAttackImages.txt

    • Write an image name of your choice from the vulfocus application on each line.

      vulfocus/flink-cve_2020_17519:latest

  • Open readyToAttackNucleiTemplates.txt

    • On each line, write the path of an appropriate nucleus template for the vulnerable image you selected.

      cves/2020/CVE-2020-17519.yaml

Notice: For txt files, the entries must have the same order. (First line of the readyToAttackImages.txt will be used together with the first line of the readyToAttackNucleiTemplates.txt` )

  • Open terminal and change directory to vulfocusAutomate folder.
  cd vulfocusAutomate
  • Run automate script. (python can be replaced with python3 for your environment)
  python automate.py 
  • At the end it will save the logs of the tests under nuclei_results folder.

About

Automated vulnerability scanning using Vulfocus API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published